﻿assert(CartoLight, "CartoLight not found!")

local CartoLight = CartoLight
local revision = tonumber(string.sub("$Revision: 3 $", 12, -3))
if revision > CartoLight.revision then
	CartoLight.version = "r" .. revision
	CartoLight.revision = revision
	CartoLight.date = string.sub("$Date: 2010-12-12 00:00:00 +0000 (Sun, 12 Dec 2010) $", 8, 17)
end

local L = Rock("LibRockLocale-1.0"):GetTranslationNamespace("CartoLight-Foglight")
L:AddTranslations("enUS", function() return {
	["Foglight"] = true,
	["Module to show unexplored areas on the map."] = true,

	["Unexplored color"] = true,
	["Change the color of the unexplored areas"] = true,
} end)

L:AddTranslations("koKR", function() return {
	["Foglight"] = "미 탐색 지역",
	["Module to show unexplored areas on the map."] = "지도에 탐험하지 못한 지역을 표시합니다.",

	["Unexplored color"] = "색상",
	["Change the color of the unexplored areas"] = "탐험하지 못한 지역의 색상을 변경합니다.",
} end)

L:AddTranslations("deDE", function() return {
	["Foglight"] = "Licht im Nebel",
	["Module to show unexplored areas on the map."] = "Modul zur Aufdeckung nicht erkundeter Bereiche auf der Weltkarte.",

	["Unexplored color"] = "Farbe nicht erkundeter Bereiche",
	["Change the color of the unexplored areas"] = "Ändert die Farbe von nicht erkundeten Bereichen.",
} end)

L:AddTranslations("frFR", function() return {
	["Foglight"] = "Antibrouillard",
	["Module to show unexplored areas on the map."] = "Module permettant d'afficher les zones inexplorées sur la carte.",

	["Unexplored color"] = "Couleur inexploré",
	["Change the color of the unexplored areas"] = "Change la couleur des zones inexplorées.",
} end)

L:AddTranslations("esES", function() return {
	["Foglight"] = "Faro Antiniebla",
	["Module to show unexplored areas on the map."] = "Módulo que muestra las zonas inexploradas del mapa",

	["Unexplored color"] = "Color de lo inexplorado",
	["Change the color of the unexplored areas"] = "Cambia el color de las áreas inexploradas",
} end)

L:AddTranslations("zhTW", function() return {
	["Foglight"] = "未探索地區",
	["Module to show unexplored areas on the map."] = "顯示地圖尚未探索地區的模組。",

	["Unexplored color"] = "未探索顏色",
	["Change the color of the unexplored areas"] = "改變尚未探索地區的顏色",
} end)

L:AddTranslations("zhCN", function() return {
	["Foglight"] = "未探索地区",
	["Module to show unexplored areas on the map."] = "显示地图未探索地区。",

	["Unexplored color"] = "未探索颜色",
	["Change the color of the unexplored areas"] = "改变尚未探索地区的颜色。",
} end)

-- Russian Translation by StingerSoft (Eritnull aka Шептун)
L:AddTranslations("ruRU", function() return {
	["Foglight"] = "Противотуман",
	["Module to show unexplored areas on the map."] = "Модуль отображает неисследованные территории на карте.",

	["Unexplored color"] = "Цвет тумана",
	["Change the color of the unexplored areas"] = "Изменить цвет неисследованных территорий",
} end)

local math_mod = math.fmod
local math_floor = math.floor
local math_ceil = math.ceil
local _G = getfenv(0)

CartoLight_Foglight = CartoLight:NewModule("Foglight", "LibRockHook-1.0")
local CartoLight_Foglight = CartoLight_Foglight

function CartoLight_Foglight:OnInitialize()
--	trace("Starting Foglight...")

	self.name = L["Foglight"]
	self.title = L["Foglight"]
    self.db = CartoLight:GetDatabaseNamespace("Foglight")
    CartoLight:SetDatabaseNamespaceDefaults("Foglight", "profile", {
		darkR = 1,
		darkG = 1,
		darkB = 1,
		darkA = 1,
    })
	CartoLight:SetDatabaseNamespaceDefaults("Foglight", "account", {
		errata = {
					["LochModan"] = {
						["StonesplinterValley"] = 370626828561,
						["IronbandsExcavationSite"] = 318332243341,
						["SilverStreamMine"] = 231993569,
						["ValleyofKings"] = 333934060854,
						["GrizzlepawRidge"] = 348149487889,
						["MogroshStronghold"] = 56410498342,
						["Thelsamar"] = 156766608839,
						["StronewroughtDam"] = 355672397,
						["TheFarstriderLodge"] = 225010028893,
						["NorthgatePass"] = 17073471,
						["TheLoch"] = 87330089290,
					},
					["BurningSteppes"] = {
						["MorgansVigil"] = 274449462655,
						["BlackrockStronghold"] = 246809920,
						["RuinsofThaurissan"] = 441813316,
						["TerrorWingPath"] = 8193922398,
						["PillarofAsh"] = 274069878034,
						["AltarofStorms"] = 368822,
						["BlackrockPass"] = 277465164074,
						["DreadmaulRock"] = 162730876178,
						["Dracodar"] = 254477253994,
						["BlackrockMountain"] = 83235097,
					},
					["Moonglade"] = {
						["LakeEluneara"] = 293361483183,
						["Nighthaven"] = 145343369562,
						["ShrineofRemulos"] = 97929961743,
						["StormrageBarrowDens"] = 226054465811,
					},
					["Barrens"] = {
						["TheCrossroads"] = 295658783977,
						["MorshanRampart"] = 6713204997,
						["Ratchet"] = 407521901787,
						["TheSludgeFen"] = 6865282305,
						["TheDryHills"] = 61325195547,
						["GroldomFarm"] = 136835196147,
						["TheForgottenPools"] = 223443419582,
						["ThornHill"] = 273235025135,
						["TheMerchantCoast"] = 490209497403,
						["BoulderLodeMine"] = 8052229398,
						["DreadmistPeak"] = 111973436657,
						["FarWatchPost"] = 139094995151,
						["TheStagnantOasis"] = 407309157712,
						["TheWailingCaverns"] = 341609616761,
					},
					["SouthernBarrens"] = {
						["ForwardCommand"] = 269952921816,
						["HonorsStand"] = 210938171,
						["RuinsofTaurajo"] = 307346189597,
						["BaelModan"] = 491117563149,
						["HuntersHill"] = 69034232026,
						["RazorfenKraul"] = 567222087894,
						["Battlescar"] = 329926304128,
						["FrazzlecrazMotherload"] = 468433702130,
						["NorthwatchHold"] = 158414953752,
						["VendettaPoint"] = 210733586686,
						["TheOvergrowth"] = 125931063651,
					},
					["Winterspring"] = {
						["WinterfallVillage"] = 194964047069,
						["StarfallVillage"] = 35673952623,
						["FrostwhisperGorge"] = 509398408509,
						["Everlook"] = 209885304002,
						["TimbermawPost"] = 324366758250,
						["OwlWingThicket"] = 471955822846,
						["FrostfireHotSprings"] = 126799349112,
						["FrostsaberRock"] = 319041868,
						["Mazthoril"] = 365490845953,
						["IceThistleHills"] = 337764377849,
						["TheHiddenGrove"] = 18778160461,
						["LakeKeltheril"] = 288153143567,
					},
					["Hinterlands"] = {
						["Seradane"] = 5867101487,
						["Zunwatha"] = 305102292194,
						["TheOverlookCliffs"] = 287399363828,
						["Shaolwatha"] = 223931012377,
						["SkulkRock"] = 209893698736,
						["JinthaAlor"] = 359140721951,
						["AeriePeak"] = 253403344110,
						["TheAltarofZul"] = 368667988193,
						["ValorwindLake"] = 289136660679,
						["TheCreepingRuin"] = 270992088263,
						["QuelDanilLodge"] = 194578173169,
						["Agolwatha"] = 171109986512,
						["ShadraAlor"] = 407179038960,
						["PlaguemistRavine"] = 112882636991,
					},
					["Westfall"] = {
						["SentinelHill"] = 243089548517,
						["TheGapingChasm"] = 180697130168,
						["FurlbrowsPumpkinFarm"] = 413357253,
						["JangoloadMine"] = 326341828,
						["TheDustPlains"] = 406377993533,
						["SaldeansFarm"] = 87446238452,
						["DemontsPlace"] = 403939986633,
						["AlexstonFarmstead"] = 282569439578,
						["TheDeadAcre"] = 215305438401,
						["TheMolsenFarm"] = 127066669258,
						["GoldCoastQuarry"] = 85034584299,
						["TheJansenStead"] = 497208522,
						["Moonbrook"] = 349289272552,
						["WestfallLighthouse"] = 512406756563,
						["TheDaggerHills"] = 424446018852,
					},
					["Badlands"] = {
						["DeathwingScar"] = 191309866312,
						["AgmondsEnd"] = 338470208854,
						["ApocryphansRest"] = 70867322108,
						["LethlorRavine"] = 59615319509,
						["TheDustbowl"] = 106451727574,
						["CampBoff"] = 236650430738,
						["Uldaman"] = 352536842,
						["HammertoesDigsite"] = 124985217233,
						["CampKosh"] = 20929843436,
						["CampCagg"] = 301721808211,
						["AngorFortress"] = 73255845149,
					},
					["Darkshore"] = {
						["Lordanel"] = 58392339733,
						["Nazjvel"] = 501654693108,
						["ShatterspearVale"] = 17805067514,
						["EyeoftheVortex"] = 256939065674,
						["WitheringThicket"] = 127021607240,
						["AmethAran"] = 354643232070,
						["RuinsofMathystra"] = 30607154376,
						["WildbendRiver"] = 406168208698,
						["ShatterspearWarcamp"] = 592596213,
						["TheMastersGlaive"] = 518907946287,
						["RuinsofAuberdine"] = 195714812107,
					},
					["WesternPlaguelands"] = {
						["DarrowmereLake"] = 380639701484,
						["Hearthglen"] = 246693296,
						["FelstoneField"] = 245053477105,
						["NorthridgeLumberCamp"] = 132312652135,
						["GahrronsWithering"] = 229226311921,
						["SorrowHill"] = 481310241136,
						["TheBulwark"] = 252379984188,
						["TheWrithingHaunt"] = 356977413289,
						["CaerDarrow"] = 419389718722,
						["Andorhal"] = 368394442192,
						["TheWeepingCave"] = 162713016505,
						["RedpineDell"] = 226859554082,
						["DalsonsFarm"] = 249422872901,
						["ThondrorilRiver"] = 559337783,
					},
					["Desolace"] = {
						["ThargadsCamp"] = 404015474900,
						["MannorocCoven"] = 383725657414,
						["SlitherbladeShore"] = 25988258130,
						["ShokThokar"] = 343141610805,
						["CenarionWildlands"] = 167939175736,
						["RanzjarIsle"] = 220345505,
						["KodoGraveyard"] = 293509225722,
						["MagramTerritory"] = 183179137313,
						["Sargeron"] = 687117629,
						["ShadowbreakRavine"] = 432312428836,
						["NijelsPoint"] = 601097447,
						["ThunderAxeFortress"] = 53074932956,
						["GelkisVillage"] = 507023397138,
						["ShadowpreyVillage"] = 396359937246,
						["ValleyofSpears"] = 210631937345,
						["TethrisAran"] = 418530578,
					},
					["Arathi"] = {
						["BoulderfistHall"] = 394406398204,
						["NorthfoldManor"] = 112881578211,
						["StromgardeKeep"] = 288858884380,
						["CircleofEastBinding"] = 135822293175,
						["CircleofWestBinding"] = 25859226844,
						["WitherbarkVillage"] = 385972662532,
						["CirecleofOuterBinding"] = 293479837911,
						["Hammerfall"] = 127311035662,
						["DabyriesFarmstead"] = 155042680018,
						["GoShekFarm"] = 267812856114,
						["RefugePoint"] = 156000073924,
						["Bouldergor"] = 132249835769,
						["CircleofInnerBinding"] = 335218445540,
						["FaldirsCove"] = 429577744657,
						["ThandolSpan"] = 446950535405,
						["GalensFall"] = 154619135188,
					},
					["Durotar"] = {
						["ValleyOfTrials"] = 335326480638,
						["DrygulchRavine"] = 64859869420,
						["RazorHill"] = 169029635296,
						["TiragardeKeep"] = 320459710674,
						["SouthfuryWatershed"] = 187127003380,
						["RazormaneGrounds"] = 283784673528,
						["EchoIsles"] = 443905473866,
						["SenjinVillage"] = 436418568384,
						["SkullRock"] = 459437264,
						["ThunderRidge"] = 51849160924,
						["NorthwatchFoothold"] = 472864945314,
						["Orgrimmar"] = 324179203,
					},
					["Tirisfal"] = {
						["TheBulwark"] = 355078588709,
						["ScarletMonastery"] = 51242080518,
						["RuinsofLorderon"] = 385917136262,
						["AgamandMills"] = 96976769309,
						["CalstonEstate"] = 274212234419,
						["Deathknell"] = 222274411951,
						["BalnirFarmstead"] = 348515388658,
						["ColdHearthManor"] = 340814644436,
						["BrightwaterLake"] = 131597635794,
						["CrusaderOutpost"] = 249827641519,
						["GarrensHaunt"] = 139013085374,
						["Brill"] = 271086442695,
						["NightmareVale"] = 349330236641,
						["ScarletWatchPost"] = 107026294945,
						["VenomwebVale"] = 161850088698,
						["SollidenFarmstead"] = 206369424670,
					},
					["SwampOfSorrows"] = {
						["MistyreedStrand"] = 629830034,
						["Stagalbog"] = 387113598299,
						["IthariusCave"] = 259853185292,
						["TheShiftingMire"] = 26117251364,
						["TheHarborage"] = 84994715914,
						["Bogpaddle"] = 629343494,
						["Stonard"] = 277337133413,
						["SplinterspearJunction"] = 253606845678,
						["PoolOfTears"] = 256153720065,
						["Sorrowmurk"] = 86636923109,
						["MarshtideWatch"] = 501569866,
						["MistyValley"] = 85899638028,
					},
					["StonetalonMountains"] = {
						["BoulderslideRavine"] = 550313816258,
						["ThaldarahOverlook"] = 130187195602,
						["WindshearHold"] = 310852646064,
						["WebwinderHollow"] = 431073003684,
						["WindshearCrag"] = 192758971766,
						["RuinsofEldrethar"] = 441692957917,
						["KromgarFortress"] = 366762725559,
						["GreatwoodVale"] = 481667805506,
						["CliffwalkerPost"] = 102389448945,
						["BattlescarValley"] = 203168195874,
						["Malakajin"] = 577247513811,
						["WebwinderPath"] = 282885193995,
						["UnearthedGrounds"] = 396896712969,
						["MirkfallonLake"] = 153982590196,
						["SunRockRetreat"] = 306386794718,
						["TheCharredVale"] = 395345938709,
						["StonetalonPeak"] = 278122801,
					},
					["DunMorogh"] = {
						["Kharanos"] = 236694204600,
						["ColdridgeValley"] = 393094674830,
						["TheTundridHills"] = 329172378798,
						["Gnomeregan"] = 28991355289,
						["FrostmaneHold"] = 243792078261,
						["NorthGateOutpost"] = 46973434093,
						["IronforgeAirfield"] = 660946228,
						["AmberstillRanch"] = 242216000761,
						["ShimmerRidge"] = 142150445227,
						["TheGrizzledDen"] = 308556234963,
						["Ironforge"] = 417688952,
						["IceFlowLake"] = 276142316,
						["HelmsBedLake"] = 288559966426,
						["TheShimmeringDeep"] = 142150445227,
						["ColdridgePass"] = 365449990369,
						["GolBolarQuarry"] = 309933108422,
						["FrostmaneFront"] = 275370032354,
					},
					["SearingGorge"] = {
						["ThoriumPoint"] = 41069884845,
						["BlackcharCave"] = 387621113207,
						["TannerCamp"] = 386980434491,
						["FirewatchRidge"] = 80531039597,
						["TheCauldron"] = 183853490657,
						["GrimsiltWorksite"] = 259328846265,
						["BlackrockMountain"] = 455521587504,
						["DustfireValley"] = 616926600,
					},
					["AlteracValley"] = {
						["ICEBLOODGARRISON"] = 185035174188,
						["DUNBALDAR"] = 14323794190,
						["FROSTWOLFKEEP"] = 403071863019,
					},
					["HillsbradFoothills"] = {
						["DandredsFold"] = 357680386,
						["Strahnbrad"] = 47774369043,
						["PurgationIsle"] = 542449478800,
						["RuinsOfAlterac"] = 91632096445,
						["DarrowHill"] = 300019777683,
						["GavinsNaze"] = 273091265652,
						["TheHeadland"] = 274213261417,
						["HillsbradFields"] = 324470488366,
						["TheUplands"] = 462586068,
						["TarrenMill"] = 243183856805,
						["Southshore"] = 378358951141,
						["GallowsCorner"] = 150796913819,
						["SouthpointTower"] = 332922091832,
						["LordamereInternmentCamp"] = 232131828986,
						["DalaranCrater"] = 147209828668,
						["ChillwindPoint"] = 73596673471,
						["NethanderSteed"] = 401032335564,
						["DurnholdeKeep"] = 233594883509,
						["SoferasNaze"] = 178748803220,
						["AzurelodeMine"] = 428724115636,
						["DunGarok"] = 440802740493,
						["CrushridgeHold"] = 108933542022,
						["CorrahnsDagger"] = 240965025927,
						["SlaughterHollow"] = 59488985236,
						["MistyShore"] = 45433922718,
						["GrowlessCave"] = 205461266603,
					},
					["Duskwood"] = {
						["AddlesStead"] = 373696012587,
						["RavenHillCemetary"] = 141829657923,
						["RacenHill"] = 313633436877,
						["TheTwilightGrove"] = 108777574720,
						["TheTranquilGardensCemetary"] = 370024894755,
						["TheDarkenedBank"] = 27991977891,
						["ManorMistmantle"] = 131689797851,
						["Darkshire"] = 138110363977,
						["TheRottingOrchard"] = 395702443299,
						["BrightwoodGrove"] = 120780635415,
						["TheHushedBank"] = 163209071805,
						["TheYorgenFarmstead"] = 425622495465,
						["VulGolOgreMound"] = 381417711884,
					},
					["ThousandNeedles"] = {
						["DarkcloudPinnacle"] = 124731519293,
						["RustmaulDiveSite"] = 499842755818,
						["SouthseaHoldfast"] = 443174617334,
						["WestreachSummit"] = 333080,
						["TheShimmeringDeep"] = 276571778459,
						["SplithoofHeights"] = 53212506543,
						["TwilightBulwark"] = 258903279974,
						["Highperch"] = 143881793782,
						["RazorfenDowns"] = 312797545,
						["TheTwilightWithering"] = 353625263478,
						["FreewindPost"] = 200005664180,
						["TheGreatLift"] = 142844176,
					},
					["Ashenvale"] = {
						["SilverwindRefuge"] = 360058245467,
						["OrendilsRetreat"] = 150203636,
						["WarsongLumberCamp"] = 285350264039,
						["TheZoramStrand"] = 399622,
						["FallenSkyLake"] = 413945581855,
						["FelfireHill"] = 341125182741,
						["Astranaar"] = 176361323771,
						["TheShrineofAssenia"] = 295321234738,
						["ThistlefurVillage"] = 84019496250,
						["Satyrnaar"] = 166086291691,
						["TheRuinsofStardust"] = 355629022444,
						["BoughShadow"] = 159790615718,
						["LakeFalathim"] = 159031468216,
						["TheHowlingVale"] = 104649178437,
						["NightRun"] = 272280847581,
						["RaynewoodRetreat"] = 237801570535,
						["ThunderPeak"] = 130318391499,
						["MaelstrasPost"] = 197502198,
					},
					["Teldrassil"] = {
						["Darnassus"] = 194503853354,
						["Shadowglen"] = 112173737201,
						["GnarlpineHold"] = 381542388934,
						["LakeAlameth"] = 333302671649,
						["TheOracleGlade"] = 96926421186,
						["WellspringLake"] = 89521382565,
						["GalardellValley"] = 254965639346,
						["TheCleft"] = 117491075216,
						["StarbreezeVillage"] = 233572602043,
						["RutheranVillage"] = 481381544253,
						["BanethilHollow"] = 237689351343,
						["PoolsofArlithrien"] = 261281237132,
					},
					["BlastedLands"] = {
						["RiseoftheDefiler"] = 109915056296,
						["NethergardeSupplyCamps"] = 457383107,
						["DreadmaulHold"] = 270743824,
						["DreadmaulPost"] = 195764089067,
						["NethergardeKeep"] = 6998406439,
						["TheTaintedForest"] = 334072485212,
						["TheRedReaches"] = 288322062604,
						["TheDarkPortal"] = 192585967986,
						["Shattershore"] = 98316859632,
						["SunveilExcursion"] = 401984465129,
						["Surwich"] = 509302996167,
						["AltarofStorms"] = 118347730158,
						["TheTaintedScar"] = 188056045876,
						["SerpentsCoil"] = 104634440922,
						["RISEOFTHEDEFILER"] = 109915056296,
					},
					["Mulgore"] = {
						["ThunderBluff"] = 66790362485,
						["TheRollingPlains"] = 313011719428,
						["WindfuryRidge"] = 419637470,
						["StonetalonPass"] = 210952429,
						["ThunderhornWaterWell"] = 217245195465,
						["TheGoldenPlains"] = 108917907642,
						["RedCloudMesa"] = 430870634942,
						["BaeldunDigsite"] = 236460376282,
						["PalemaneRock"] = 344931382444,
						["WildmaneWaterWell"] = 347254974,
						["BloodhoofVillage"] = 293466242350,
						["RedRocks"] = 46710056122,
						["TheVentureCoMine"] = 148732424400,
						["RavagedCaravan"] = 240974468283,
						["WinterhoofWaterWell"] = 365543220398,
					},
					["Felwood"] = {
						["JadefireGlen"] = 492075960549,
						["RuinsofConstellas"] = 385765038348,
						["ShatterScarVale"] = 115145435479,
						["MorlosAran"] = 520190345403,
						["Jaedenar"] = 340621705535,
						["EmeraldSanctuary"] = 410582733074,
						["BloodvenomFalls"] = 248265245017,
						["DeadwoodVillage"] = 542669704365,
						["IrontreeWoods"] = 59481801989,
						["TalonbranchGlade"] = 61760309457,
						["FelpawVillage"] = 494044467,
						["JadefireRun"] = 9981598983,
					},
					["Silverpine"] = {
						["DeepElemMine"] = 228139931865,
						["NorthTidesRun"] = 154494233,
						["TheGreymaneWall"] = 543646976409,
						["Ambermill"] = 268969430299,
						["TheForsakenFront"] = 351567803544,
						["TheDecrepitFields"] = 167997759664,
						["TheBattlefront"] = 461001380095,
						["NorthTidesBeachhead"] = 73353338030,
						["ValgansField"] = 83161690274,
						["FenrisIsle"] = 16715659616,
						["ForsakenRearGuard"] = 387168442,
						["ForsakenHighCommand"] = 466795881,
						["TheSepulcher"] = 168935235802,
						["ShadowfangKeep"] = 362204533939,
						["OlsensFarthing"] = 267689041147,
						["BerensPeril"] = 435395239230,
						["TheSkitteringDark"] = 247640291,
					},
					["Aszhara"] = {
						["GallywixPleasurePalace"] = 238444321018,
						["RavencrestMonument"] = 431069867303,
						["RuinsofArkkoran"] = 130525889755,
						["BitterReaches"] = 500424001,
						["OrgimmarRearGate"] = 369390537056,
						["BearsHead"] = 151516315904,
						["TheShatteredStrand"] = 180720313550,
						["TheSecretLab"] = 425572127928,
						["TowerofEldara"] = 24339891506,
						["StormCliffs"] = 433144963279,
						["DarnassianBaseCamp"] = 3581155571,
						["BilgewaterHarbor"] = 136779789899,
						["LakeMennar"] = 405057806546,
						["RuinsofEldarath"] = 246126195930,
						["BlackmawHold"] = 57122499844,
					},
					["Elwynn"] = {
						["JerodsLanding"] = 462124431590,
						["Goldshire"] = 315939331348,
						["WestbrookGarrison"] = 381300303117,
						["NorthshireValley"] = 148548919591,
						["EastvaleLoggingCamp"] = 314270010662,
						["CrystalLake"] = 351551044828,
						["StonecairnLake"] = 200295072084,
						["RidgepointTower"] = 475336476957,
						["TowerofAzora"] = 308718847246,
						["FargodeepMine"] = 451223478541,
						["BrackwellPumpkinPatch"] = 455824597279,
						["Stromwind"] = 432640,
					},
					["Tanaris"] = {
						["DunemaulCompound"] = 276271645927,
						["BrokenPillar"] = 226992753859,
						["TheNoxiousLair"] = 226830252211,
						["EastmoonRuins"] = 366544587949,
						["Gadgetzan"] = 99216445629,
						["AbyssalSands"] = 159225415935,
						["LandsEndBeach"] = 485783462112,
						["TheGapingChasm"] = 391311977697,
						["ValleryoftheWatchers"] = 463050307853,
						["LostRiggerCover"] = 216467229874,
						["GadgetzanBay"] = 10166293758,
						["ZulFarrak"] = 193132859,
						["SandsorrowWatch"] = 106607826134,
						["SouthbreakShore"] = 310769805586,
						["ThistleshrubValley"] = 300841997533,
						["CavernsofTime"] = 256082359509,
						["SouthmoonRuins"] = 375051734248,
					},
					["Silithus"] = {
						["HiveAshi"] = 4656999829,
						["HiveZora"] = 221191192094,
						["TwilightBaseCamp"] = 162240110002,
						["ValorsRest"] = 644117819,
						["HiveRegal"] = 333258791401,
						["TheCrystalVale"] = 132372809,
						["CenarionHold"] = 153993089316,
						["SouthwindVillage"] = 194924236085,
						["TheScarabWall"] = 488552748612,
					},
					["Feralas"] = {
						["GrimtotemCompund"] = 183172819103,
						["TheTwinColossals"] = 284506462,
						["DireMaul"] = 108956774665,
						["WrithingDeep"] = 320658946280,
						["RuinsofFeathermoon"] = 246082121936,
						["CampMojache"] = 195051090094,
						["FeathermoonStronghold"] = 254856593625,
						["DarkmistRuins"] = 308759697580,
						["LowerWilds"] = 205877626063,
						["GordunniOutpost"] = 125249418432,
						["FeralScar"] = 302200835263,
						["RuinsofIsildien"] = 380594533582,
						["TheForgottenCoast"] = 368686973122,
					},
					["EasternPlaguelands"] = {
						["LightsShieldTower"] = 291394193651,
						["ZulMashar"] = 553828638,
						["Acherus"] = 110333543652,
						["NorthpassTower"] = 74508861690,
						["Stratholme"] = 123914550,
						["Darrowshire"] = 496290183416,
						["TheFungalVale"] = 226751635730,
						["ThePestilentScar"] = 374064087222,
						["Tyrshand"] = 445211998422,
						["LightsHopeChapel"] = 291704631492,
						["CrownGuardTower"] = 377154108618,
						["TheUndercroft"] = 490758950168,
						["RuinsOfTheScarletEnclave"] = 317528069384,
						["TheInfectisScar"] = 283018274993,
						["TheMarrisStead"] = 359843178698,
						["Terrordale"] = 10737746178,
						["TheNoxiousGlade"] = 59737681193,
						["QuelLithienLodge"] = 368229653,
						["CorinsCrossing"] = 310828553402,
						["Plaguewood"] = 43100927304,
						["Northdale"] = 66096177417,
						["BlackwoodLake"] = 162535808238,
						["LakeMereldar"] = 458972448010,
						["ThondorilRiver"] = 107374721286,
						["EastwallTower"] = 198135955637,
					},
					["UngoroCrater"] = {
						["IronstonePlateau"] = 216562628805,
						["FirePlumeRidge"] = 206532018497,
						["MossyPile"] = 192543909050,
						["TheRollingGarden"] = 42468705617,
						["TheSlitheringScar"] = 412668414333,
						["MarshalsStand"] = 354819418316,
						["TheScreamingReaches"] = 164966732,
						["TerrorRun"] = 383496000828,
						["TheMarshlands"] = 275479163143,
						["FungalRock"] = 584252640,
						["LakkariTarPits"] = 320117168,
						["GolakkaHotSprings"] = 242817979701,
					},
					["Dustwallow"] = {
						["ShadyRestInn"] = 202007353661,
						["Mudsprocket"] = 336195845553,
						["BrackenwllVillage"] = 63490483584,
						["DirehornPost"] = 181838066967,
						["BlackhoofVillage"] = 208854360,
						["TheWyrmbog"] = 396587478452,
						["WitchHill"] = 449152270,
						["AlcazIsland"] = 23236649166,
						["TheramoreIsle"] = 240013008177,
					},
					["DeadwindPass"] = {
						["DeadmansCrossing"] = 87566953,
						["TheVice"] = 223792792926,
						["Karazhan"] = 332956801537,
					},
					["Wetlands"] = {
						["SundownMarsh"] = 67772861716,
						["WhelgarsExcavationSite"] = 209574100266,
						["SlabchiselsSurvey"] = 378515288364,
						["DireforgeHills"] = 37038035273,
						["GreenwardensGrove"] = 110004286714,
						["DunAlgaz"] = 450260852010,
						["Satlspray"] = 228878586,
						["ThelganRock"] = 360092744962,
						["AngerfangEncampment"] = 216198807788,
						["IronbeardsTomb"] = 81994678457,
						["MosshideFen"] = 249638923633,
						["RaptorRidge"] = 132698592512,
						["BlackChannelMarsh"] = 257737072941,
						["BluegillMarsh"] = 109554426177,
						["DunModr"] = 7889675521,
						["MenethilHarbor"] = 318901693765,
					},
					["Redridge"] = {
						["StonewatchFalls"] = 324820719932,
						["ThreeCorners"] = 274878323011,
						["RendersValley"] = 405273873835,
						["ShalewindCanyon"] = 304590688562,
						["RendersCamp"] = 224647525,
						["LakeEverstill"] = 229865941456,
						["StonewatchKeep"] = 503746788,
						["GalardellValley"] = 602357164,
						["CampEverstill"] = 307556975805,
						["RedridgeCanyons"] = 39096733,
						["AlthersMill"] = 149617368292,
						["Lakeshire"] = 118111863194,
						["LakeridgeHighway"] = 339457966472,
					},
					["StranglethornJungle"] = {
						["RuinsOfZulKunda"] = 165946596,
						["BaliaMahRuins"] = 261335758063,
						["MoshOggOgreMound"] = 272226269418,
						["GromGolBaseCamp"] = 245125794983,
						["KurzensCompound"] = 523483380,
						["KalAiRuins"] = 197939845259,
						["BalAlRuins"] = 180668736671,
						["MizjahRuins"] = 264546464925,
						["RebelCamp"] = 321034542,
						["NesingwarysExpedition"] = 67966793955,
						["Mazthoril"] = 391353994590,
						["Bambala"] = 176687333566,
						["ZuuldalaRuins"] = 23632026948,
						["ZulGurub"] = 656982392,
						["TheVileReef"] = 223485329644,
						["LakeNazferiti"] = 102438768880,
						["FortLivingston"] = 403070691558,
					},
					["TheCapeOfStranglethorn"] = {
						["WildShore"] = 421263593708,
						["RuinsofAboraz"] = 194906341560,
						["JagueroIsle"] = 434285846768,
						["MistvaleValley"] = 266716039421,
						["BootyBay"] = 366449261793,
						["HardwrenchHideaway"] = 124772382052,
						["NekmaniWellspring"] = 229013419254,
						["TheSundering"] = 474170612,
						["CrystalveinMine"] = 78937010447,
						["GurubashiArena"] = 362025198,
						["RuinsofJubuwal"] = 128266237083,
					},
					["Alterac"] = {
						["DANDREDSFOLD"] = 289642781,
						["THEUPLANDS"] = 83162767595,
						["DALARAN"] = 281347928364,
						["SOFERASNAZE"] = 330123510015,
						["LORDAMEREINTERNMENTCAMP"] = 432764364106,
						["CHILLWINDPOINT"] = 272313469278,
						["THEHEADLAND"] = 506061853861,
						["CRUSHRIDGEHOLD"] = 174296645912,
						["MISTYSHORE"] = 140865986780,
						["GALLOWSCORNER"] = 299999895752,
						["STRAHNBRAD"] = 113318867314,
						["GAVINSNAZE"] = 513484700832,
						["GROWLESSCAVE"] = 399764531390,
						["RUINSOFALTERAC"] = 211810516223,
						["CORRAHNSDAGGER"] = 408440570051,
					},
					["AzuremystIsle"] = {
						["AzureWatch"] = 267763581184,
						["MoongrazeWoods"] = 196965826816,
						["StillpineHold"] = 52996342016,
						["BristlelimbVillage"] = 389950996736,
						["GreezlesCamp"] = 376341528832,
						["WrathscalePoint"] = 452276247808,
						["PodWreckage"] = 375220600960,
						["PodCluster"] = 327786168576,
						["AmmenFord"] = 300114247936,
						["SiltingShore"] = 3526623488,
						["Emberglade"] = 26281771264,
						["TheExodar"] = 91346174464,
						["FairbridgeStrand"] = 373424384,
						["ValaarsBerth"] = 325528584448,
						["OdesyusLanding"] = 406243770624,
						["AmmenVale"] = 112222274011,
						["SilvermystIsle"] = 478913198336,
					},
					["Netherstorm"] = {
						["SocretharsSeat"] = 41042575616,
						["NetherstormBridge"] = 315818770688,
						["EtheriumStagingGrounds"] = 223842926848,
						["TheStormspire"] = 144194142464,
						["KirinVarVillage"] = 562080924928,
						["ManaforgeCoruu"] = 525434277120,
						["ManafrogeAra"] = 166609551616,
						["TempestKeep"] = 305564877209,
						["RuinsofFarahlon"] = 52984807936,
						["RuinsofEnkaat"] = 323461841152,
						["TheScrapField"] = 280620171520,
						["CelestialRidge"] = 186432880896,
						["ForgeBaseOG"] = 23871095040,
						["RuinedManaforge"] = 148714553600,
						["Area52"] = 416864665856,
						["EcoDomeFarfield"] = 11152916736,
						["Netherstone"] = 21906063616,
						["ManaforgeBanar"] = 301875989760,
						["ManaforgeDuro"] = 361265103104,
						["ArklonRuins"] = 426619699456,
						["TheHeap"] = 488803357952,
						["SunfuryHold"] = 484733838592,
					},
					["Hellfire"] = {
						["MagharPost"] = 118327869696,
						["ZethGor"] = 462317402534,
						["HonorHold"] = 320467108096,
						["HellfireCitadel"] = 225840670976,
						["TheLegionFront"] = 138046603520,
						["WarpFields"] = 438409892096,
						["TempleofTelhamat"] = 163249127936,
						["VoidRidge"] = 395876499712,
						["PoolsofAggonar"] = 48660742400,
						["FalconWatch"] = 350232074752,
						["ForgeCampRage"] = 27345289728,
						["DenofHaalesh"] = 442572734720,
						["TheStairofDestiny"] = 168277049600,
						["FallenSkyRidge"] = 152507252992,
						["Thrallmar"] = 165846188288,
						["ThroneofKiljaeden"] = 6942884352,
						["ExpeditionArmory"] = 443729313280,
						["RuinsofShanaar"] = 311411730688,
					},
					["BladesEdgeMountains"] = {
						["VekhaarStand"] = 436598997248,
						["ForgeCampWrath"] = 189245161728,
						["VeilLashh"] = 459845910784,
						["RuuanWeald"] = 105729491200,
						["BladesipreHold"] = 173202205952,
						["ThunderlordStronghold"] = 292482855168,
						["RidgeofMadness"] = 277606721792,
						["BladedGulch"] = 158493573376,
						["CircleofWrath"] = 225946370304,
						["BashirLanding"] = 442761472,
						["MokNathalVillage"] = 319591547136,
						["Skald"] = 76941623552,
						["VeilRuuan"] = 162725495040,
						["BloodmaulOutpost"] = 398717134080,
						["Sylvanaar"] = 376113002752,
						["VortexPinnacle"] = 221365352704,
						["Grishnath"] = 30364926208,
						["JaggedRidge"] = 444997040384,
						["RavensWood"] = 59280458240,
						["RazorRidge"] = 357041520896,
						["ForgeCampAnger"] = 158454776224,
						["GruulsLayer"] = 87525949696,
						["DeathsDoor"] = 267899014400,
						["BrokenWilds"] = 117806727424,
						["ForgeCampTerror"] = 446827852288,
						["BloodmaulCamp"] = 102437748992,
						["TheCrystalpine"] = 613679360,
					},
					["Ghostlands"] = {
						["GoldenmistVillage"] = 46662144,
						["ZebNowa"] = 254965890560,
						["HowlingZiggurat"] = 235506435328,
						["FarstriderEnclave"] = 146629984685,
						["DawnstarSpire"] = 603193771,
						["WindrunnerVillage"] = 125691232512,
						["Deatholme"] = 402753099264,
						["SanctumoftheSun"] = 161531560192,
						["IsleofTribulations"] = 613679360,
						["SuncrownVillage"] = 482607616,
						["SanctumoftheMoon"] = 135511933184,
						["Tranquillien"] = 2530738432,
						["ElrendarCrossing"] = 342098432,
						["BleedingZiggurat"] = 255743754496,
						["ThalassiaPass"] = 436321130752,
						["WindrunnerSpire"] = 308206108928,
						["AmaniPass"] = 249735598484,
					},
					["Zangarmarsh"] = {
						["ZabraJin"] = 249291866368,
						["AngoroshStronghold"] = 130154752,
						["TwinspireRuins"] = 267720589568,
						["BloodscaleEnclave"] = 443006845184,
						["CoilfangReservoir"] = 97121730816,
						["Telredor"] = 120856248576,
						["TheDeadMire"] = 138190258462,
						["Sporeggar"] = 216917082624,
						["CenarionRefuge"] = 345399099700,
						["TheHewnBog"] = 54990995712,
						["MarshlightLake"] = 163293954304,
						["QuaggRidge"] = 349114293504,
						["TheLagoon"] = 325880905984,
						["UmbrafenVillage"] = 495750167808,
						["TheSpawningGlen"] = 364031246592,
						["AngoroshGrounds"] = 53779628288,
						["OreborHarborage"] = 27189051648,
						["FeralfenVillage"] = 356811883008,
					},
					["BloodmystIsle"] = {
						["RuinsofLorethAran"] = 232511504640,
						["TheBloodcursedReef"] = 58746732800,
						["VeridianPoint"] = 668205312,
						["TheCryoCore"] = 306323915008,
						["RagefeatherRidge"] = 126132420864,
						["KesselsCrossing"] = 566404199909,
						["Axxarien"] = 146340577536,
						["AmberwebPass"] = 66618654976,
						["WyrmscarIsland"] = 88689869056,
						["WrathscaleLair"] = 363552047360,
						["VindicatorsRest"] = 260089053440,
						["TheBloodwash"] = 29307961600,
						["Middenvale"] = 436373553408,
						["Nazzivian"] = 434054103296,
						["TheVectorCoil"] = 255596083712,
						["TheFoulPool"] = 146260885760,
						["TheHiddenReef"] = 42091151616,
						["BloodWatch"] = 277483880704,
						["BlacksiltShore"] = 457599863296,
						["TalonStand"] = 84441039104,
						["TheLostFold"] = 505186294016,
						["BloodscaleIsle"] = 275678232815,
						["TheCrimsonReach"] = 93997760768,
						["TheWarpPiston"] = 31611683072,
						["Bladewood"] = 224797131008,
						["TelathionsCamp"] = 232117108864,
						["BristlelimbEnclave"] = 440806932736,
						["Mystwood"] = 518941500672,
					},
					["EversongWoods"] = {
						["Zebwatha"] = 510608475264,
						["ThuronsLivery"] = 328056570112,
						["WestSanctum"] = 342830088320,
						["TheGoldenStrand"] = 445795005568,
						["GoldenboughPass"] = 503839850752,
						["LakeElrendar"] = 506344969344,
						["AzurebreezeCoast"] = 245514895616,
						["StillwhisperPond"] = 337652220160,
						["TranquilShore"] = 320200769792,
						["EastSanctum"] = 400988307712,
						["SilvermoonCity"] = 93877436928,
						["SatherilsHaven"] = 412656861440,
						["TorWatha"] = 338908513536,
						["TheScortchedGrove"] = 544654622976,
						["TheLivingWood"] = 451507642496,
						["NorthSanctum"] = 320353861888,
						["RunestoneShandor"] = 530915178752,
						["RunestoneFalithas"] = 532972482816,
						["SunsailAnchorage"] = 434034049280,
						["ElrendarFalls"] = 429031424128,
						["RuinsofSilvermoon"] = 146351063296,
						["SunstriderIsle"] = 5573706240,
						["FairbreezeVilliage"] = 414869356800,
						["DuskwitherGrounds"] = 272291332352,
						["FarstriderRetreat"] = 386022899968,
					},
					["ShadowmoonValley"] = {
						["LegionHold"] = 166539559424,
						["NetherwingLedge"] = 478350114284,
						["TheHandofGuldan"] = 97050427904,
						["IlladarPoint"] = 275028115712,
						["WildhammerStronghold"] = 246063488512,
						["ShadowmoonVilliage"] = 37703123456,
						["NetherwingCliffs"] = 331293655296,
						["EclipsePoint"] = 333219994112,
						["TheDeathForge"] = 138817306880,
						["CoilskarPoint"] = 8955363840,
						["TheWardensCage"] = 277517593088,
						["TheBlackTemple"] = 135927431564,
						["AltarofShatar"] = 100403511552,
					},
					["TerokkarForest"] = {
						["BonechewerRuins"] = 295825572096,
						["RaastokGlade"] = 165886034176,
						["SkethylMountains"] = 374133293568,
						["StonebreakerHold"] = 177583948032,
						["CarrionHill"] = 292453351680,
						["AllerianStronghold"] = 297930064128,
						["GrangolvarVilliage"] = 183760060928,
						["RefugeCaravan"] = 288094421120,
						["FirewingPoint"] = 160635027841,
						["RazorthornShelf"] = 20902576384,
						["CenarionThicket"] = 329515264,
						["RingofObservance"] = 370766250240,
						["ShattrathCity"] = 4404544000,
						["VeilRhaze"] = 388927586560,
						["TheBarrierHills"] = 4416864512,
						["SethekkTomb"] = 310568550656,
						["BleedingHollowClanRuins"] = 323304668416,
						["Tuurem"] = 36984848640,
						["SmolderingCaravan"] = 494258045184,
						["AuchenaiGrounds"] = 466263189760,
						["WrithingMound"] = 351551095040,
					},
					["Nagrand"] = {
						["LaughingSkullRuins"] = 56202887424,
						["ZangarRidge"] = 58272776448,
						["TwilightRidge"] = 114901385472,
						["Telaar"] = 419165372672,
						["KilsorrowFortress"] = 459073111296,
						["ForgeCampHate"] = 165526372608,
						["RingofTrials"] = 287248220416,
						["WindyreedVillage"] = 250880459008,
						["ClanWatch"] = 390326386944,
						["SouthwindCleft"] = 277435646208,
						["ForgeCampFear"] = 266326151680,
						["Garadar"] = 153997279488,
						["WarmaulHill"] = 34524627200,
						["Halaa"] = 207583707392,
						["BurningBladeRUins"] = 359322171648,
						["ThroneoftheElements"] = 57437061376,
						["SunspringPost"] = 213904523520,
						["OshuGun"] = 358806272512,
						["WindyreedPass"] = 85452914944,
					},
					["Sunwell"] = {
						["SunsReachHarbor"] = 270847607296,
						["SunsReachSanctum"] = 4558684672,
					},
					-- Northrend Data
					["HowlingFjord"] = {
						["ScalawagPoint"] = 440410573150,
						["ExplorersLeagueOutpost"] = 361390891240,
						["Halgrind"] = 223754853563,
						["Nifflevar"] = 258322153650,
						["Kamagua"] = 298604307789,
						["Baleheim"] = 183140267182,
						["IvaldsRuin"] = 240145081537,
						["EmberClutch"] = 218266599637,
						["VengeanceLanding"] = 27540146399,
						["WestguardKeep"] = 193368125787,
						["CampWinterHoof"] = 371410143,
						["UtgardeKeep"] = 232428796152,
						["Skorn"] = 116324016366,
						["NewAgamand"] = 386982531356,
						["CauldrosIsle"] = 173386418357,
						["TheTwistedGlade"] = 61643901194,
						["SteelGate"] = 107607138526,
						["Gjalerbron"] = 236123378,
						["GiantsRun"] = 600099114,
						["FortWildervar"] = 513999099,
						["ApothecaryCamp"] = 39832528135,
						["BaelgunsExcavationSite"] = 351765054708,
						["AncientLift"] = 377242188977,
					},
					["BoreanTundra"] = {
						["AmberLedge"] = 150664861940,
						["BorGorokOutpost"] = 329461132,
						["TempleCityOfEnKilah"] = 16853012770,
						["TheDensOfDying"] = 12505531595,
						["Coldarra"] = 52819404,
						["TorpsFarm"] = 254762307770,
						["DeathsStand"] = 195088899361,
						["ValianceKeep"] = 283947350275,
						["TheGeyserFields"] = 503667063,
						["SteeljawsCaravan"] = 71283571956,
						["WarsongStronghold"] = 254822078724,
						["Kaskala"] = 230314799489,
						["RiplashStrand"] = 411550615934,
						["GarroshsLanding"] = 255711373579,
					},
					["Dragonblight"] = {
						["WyrmrestTemple"] = 235624826173,
						["WestwindRefugeeCamp"] = 200834067685,
						["RubyDragonshrine"] = 223730683068,
						["NewHearthglen"] = 385043666134,
						["ScarletPoint"] = 8113195243,
						["ColdwindHeights"] = 422800597,
						["ObsidianDragonshrine"] = 111937793328,
						["AgmarsHammer"] = 218240346348,
						["Naxxramas"] = 172523536695,
						["EmeraldDragonshrine"] = 389264140484,
						["LightsRest"] = 8253626667,
						["TheForgottenShore"] = 357214484781,
						["GalakrondsRest"] = 127155799298,
						["VenomSpite"] = 284161167586,
						["IcemistVillage"] = 177308255467,
						["Angrathar"] = 220449074,
						["TheCrystalVice"] = 510921957,
						["LakeIndule"] = 336309039460,
					},
					["GrizzlyHills"] = {
						["GrizzleMaw"] = 201165344038,
						["GraniteSprings"] = 222272127332,
						["DrakilJinRuins"] = 44660191583,
						["Voldrune"] = 452230110491,
						["VentureBay"] = 495014067474,
						["RageFangShrine"] = 316007623131,
						["ThorModan"] = 533977417,
						["UrsocsDen"] = 34707083592,
						["CampOneqwah"] = 147677521220,
						["ConquestHold"] = 329656867148,
						["DunArgol"] = 276525629895,
						["BlueSkyLoggingGrounds"] = 138756205817,
						["AmberpineLodge"] = 262220843286,
						["DrakTheronKeep"] = 49392416126,
					},
					["ZulDrak"] = {
						["GunDrak"] = 659858768,
						["ZimTorga"] = 259274311929,
						["AmphitheaterOfAnguish"] = 308467202314,
						["DrakSotraFields"] = 384741680414,
						["ThrymsEnd"] = 265214505232,
						["AltarOfMamToth"] = 95092476195,
						["AltarOfQuetzLun"] = 270145978629,
						["AltarOfRhunok"] = 136817459447,
						["Zeramas"] = 442389233971,
						["AltarOfSseratus"] = 180690870509,
						["AltarOfHarKoa"] = 371000083721,
						["Voltarus"] = 205267438810,
						["LightsBreach"] = 389958387009,
						["Kolramas"] = 469623872814,
						["AltarOfMamToth"] = 95092536631,
					},
					["SholazarBasin"] = {
						["TheStormwrightsShelf"] = 62422024460,
						["TheMakersOverlook"] = 254142609641,
						["TheGlimmeringPillar"] = 36830518566,
						["TheMakersPerch"] = 145135755513,
						["TheSavageThicket"] = 55176303909,
						["RiversHeart"] = 364375254484,
						["TheAvalanche"] = 99409470786,
						["TheLifebloodPillar"] = 144407119160,
						["RainspeakerCanopy"] = 262440987855,
						["TheMosslightPillar"] = 381456540911,
						["KartaksHold"] = 402733176137,
						["TheSuntouchedPillar"] = 199802286535,
					},
					["CrystalsongForest"] = {
						["VioletStand"] = 188978871560,
						["TheDecrepitFlow"] = 227616,
						["TheAzureFront"] = 261993439648,
						["ForlornWoods"] = 135950880,
						["TheUnboundThicket"] = 113267668470,
						["TheGreatTree"] = 97710772476,
						["WindrunnersOverlook"] = 411708978734,
						["SunreaversCommand"] = 43512087998,
					},
					["TheStormPeaks"] = {
						["Frosthold"] = 460775977204,
						["EngineoftheMakers"] = 318159113426,
						["Ulduar"] = 228861297,
						["GarmsBane"] = 505073040568,
						["NarvirsCradle"] = 154843462836,
						["SparksocketMinefield"] = 502765134075,
						["Nidavelir"] = 221304266973,
						["Thunderfall"] = 192857739570,
						["TerraceoftheMakers"] = 131303036267,
						["DunNiffelem"] = 306521177397,
						["TempleofLife"] = 121930791094,
						["SnowdriftPlains"] = 153715187917,
						["Valkyrion"] = 341552822500,
						["BorsBreath"] = 402767678786,
						["TempleofStorms"] = 323447066793,
						["BrunnhildarVillage"] = 397640247601,
					},
					["IcecrownGlacier"] = {
						["Aldurthar"] = 40101076341,
						["Corprethar"] = 421265625396,
						["TheBrokenFront"] = 353846402331,
						["IcecrownCitadel"] = 500774938932,
						["SindragosasFall"] = 46837083427,
						["TheFleshwerks"] = 312687750363,
						["TheShadowVault"] = 16443129055,
						["TheConflagration"] = 327834355939,
						["ValleyofEchoes"] = 419509265677,
						["Scourgeholme"] = 287412829429,
						["Ymirheim"] = 296818523359,
						["OnslaughtHarbor"] = 179315159244,
						["TheBombardment"] = 194911653112,
						["Jotunheim"] = 131020056969,
						["Valhalas"] = 53914878190,
						["ArgentTournamentGround"] = 32858407226,
						["SindragosasFall"] = 33942756652,
					},
					-- Cataclysm data
					["RuinsofGilneas"] = {
						["GilneasPuzzle"] = 685034,
					},
					["Kezan"] = {
						["FirstbankofKezan"] = 349069204856,
						["BilgewaterPort"] = 159085005494,
						["KajaroField"] = 279574793466,
						["Kajamine"] = 331327316322,
						["Drudgetown"] = 394252301663,
						["GallywixsVilla"] = 44023877935,
						["SwindleStreet"] = 249440720040,
						["KezanMap"] = 4295648234,
						["TheSlick"] = 116193962576,
					},
					["Hyjal"] = {
						["TheScorchedPlain"] = 232359469421,
						["ArchimondesVengeance"] = 5704560910,
						["TheThroneOfFlame"] = 406208154019,
						["Nordrassil"] = 411373081,
						["ShrineOfGoldrinn"] = 18375574819,
						["DireforgeHill"] = 211845035278,
						["GatesOfSothann"] = 344249940240,
						["DarkwhisperGorge"] = 138154564928,
						["TheRegrowth"] = 271711534521,
						["SethriasRoost"] = 468297425173,
						["AshenLake"] = 83758582042,
					},
					["Hyjal_terrain1"] = {
						["AshenLake"] = 83758582042,
						["DireforgeHill"] = 211845035278,
						["DarkwhisperGorge"] = 138154564928,
						["ArchimondesVengeance"] = 5704560910,
						["TheRegrowth"] = 271711534521,
						["ShrineOfGoldrinn"] = 18375574819,
						["TheScorchedPlain"] = 232359469421,
						["TheThroneOfFlame"] = 406208154019,
						["Nordrassil"] = 411373081,
						["GatesOfSothann"] = 344249940240,
						["SethriasRoost"] = 468297425173,
					},
					["TheLostIsles"] = {
						["ShipwreckShore"] = 438285024428,
						["Alliancebeachhead"] = 373797597361,
						["TheSavageGlen"] = 349189660903,
						["HordeBaseCamp"] = 492029802718,
						["RuinsOfVashelan"] = 485792899284,
						["KTCOilPlatform"] = 12265339036,
						["Oostan"] = 173388597458,
						["RaptorRise"] = 395573408936,
						["TheSlavePits"] = 73307194580,
						["landingSite"] = 385868764302,
						["ScorchedGully"] = 198981222705,
						["BilgewaterLumberyard"] = 46655554808,
						["WarchiefsLookout"] = 154895882399,
						["OoomlotVillage"] = 370973822173,
						["GallywixDocks"] = 22916812973,
						["Lostpeak"] = 23158330718,
						["SkyFalls"] = 141096577214,
					},
					["TheLostIsles_terrain1"] = {
						["RuinsOfVashelan"] = 485792899284,
						["Alliancebeachhead"] = 373797597361,
						["HordeBaseCamp"] = 492029802718,
						["ShipwreckShore"] = 438285024428,
						["ScorchedGully"] = 198981222705,
						["Oostan"] = 173388597458,
						["RaptorRise"] = 395573408936,
						["Lostpeak"] = 23158330718,
						["OoomlotVillage"] = 370973822173,
						["TheSavageGlen"] = 349189660903,
						["landingSite"] = 385868764302,
					},
					["TheLostIsles_terrain2"] = {
						["BilgewaterLumberyard"] = 46655554808,
						["Alliancebeachhead"] = 373797597361,
						["HordeBaseCamp"] = 492029802718,
						["ShipwreckShore"] = 438285024428,
						["Oostan"] = 173388597458,
						["RaptorRise"] = 395573408936,
						["TheSlavePits"] = 73307194580,
						["TheSavageGlen"] = 349189660903,
						["landingSite"] = 385868764302,
						["Lostpeak"] = 23158330718,
						["OoomlotVillage"] = 370973822173,
						["RuinsOfVashelan"] = 485792899284,
						["WarchiefsLookout"] = 154895882399,
						["GallywixDocks"] = 22916812973,
						["KTCOilPlatform"] = 12265339036,
						["SkyFalls"] = 141096577214,
						["ScorchedGully"] = 198981222705,
					},
					["Gilneas"] = {
						["GilneasCity"] = 225992514842,
						["Duskhaven"] = 357841422622,
						["HammondFarmstead"] = 378132476098,
						["Greymanemanor"] = 217043944692,
						["HaywardFishery"] = 482417536177,
						["TempestsReach"] = 312069154142,
						["TheHeadlands"] = 168116552,
						["Keelharbor"] = 102318299416,
						["TheBlackwald"] = 423582990616,
						["StormglenVillage"] = 499831221569,
						["EmberstoneMine"] = 46841298201,
						["CrowleyOrchard"] = 458761607378,
						["KorothsDen"] = 414876709086,
						["NorthernHeadlands"] = 406120715,
					},
					["Gilneas_terrain1"] = {
						["Greymanemanor"] = 217043944692,
						["HammondFarmstead"] = 378132476098,
						["HaywardFishery"] = 482417536177,
						["CrowleyOrchard"] = 458761607378,
						["GilneasCity"] = 225992514842,
						["Duskhaven"] = 357841422622,
					},
					["Gilneas_terrain2"] = {
						["Greymanemanor"] = 217043944692,
						["HammondFarmstead"] = 378132476098,
						["HaywardFishery"] = 482417536177,
						["GilneasCity"] = 225992514842,
						["Duskhaven"] = 357841422622,
						["CrowleyOrchard"] = 458761607378,
						["StormglenVillage"] = 499831221569,
						["TempestsReach"] = 312069154142,
						["NorthernHeadlands"] = 406120715,
						["EmberstoneMine"] = 46841298201,
						["KorothsDen"] = 414876709086,
						["TheBlackwald"] = 423582990616,
						["Keelharbor"] = 102318299416,
						["TheHeadlands"] = 168116552,
					},
					["TwilightHighlands"] = {
						["DragonmawPass"] = 128928921883,
						["Bloodgulch"] = 220553442519,
						["CrucibleOfCarnage"] = 288168820939,
						["TheGullet"] = 192482037935,
						["Thundermar"] = 100250391790,
						["TheKrazzworks"] = 686006498,
						["WeepingWound"] = 375584982,
						["RuinsOfDrakgor"] = 310565070,
						["DragonmawPort"] = 263728610555,
						["Kirthaven"] = 505687348,
						["TwilightShore"] = 371080767748,
						["Highbank"] = 433449045212,
						["SlitheringCove"] = 182114788550,
						["GrimBatol"] = 239531741414,
						["ObsidianForest"] = 408479367510,
						["TheBlackBreach"] = 130445166803,
						["Crushblow"] = 480350768310,
						["VermillionRedoubt"] = 17254588740,
						["TheTwilightBreach"] = 206485803207,
						["DunwaldRuins"] = 394477660357,
						["GlopgutsHollow"] = 95868352686,
						["VictoryPoint"] = 328881831089,
						["WyrmsBend"] = 249323264191,
						["GorshakWarCamp"] = 236792752322,
						["HighlandForest"] = 354840453359,
						["HumboldtConflaguration"] = 95923877007,
						["TheTwilightCitadel"] = 337313630569,
						["TheTwilightGate"] = 382595177637,
						["FirebeardsPatrol"] = 285065008343,
					},
					["TwilightHighlands_terrain1"] = {
						["DragonmawPass"] = 128928921883,
						["TheTwilightCitadel"] = 337313630569,
						["CrucibleOfCarnage"] = 288168820939,
						["Thundermar"] = 100250391790,
						["GorshakWarCamp"] = 236792752322,
						["TheKrazzworks"] = 686006498,
						["GrimBatol"] = 239531741414,
						["RuinsOfDrakgor"] = 310565070,
						["DragonmawPort"] = 263728610555,
						["Kirthaven"] = 505687348,
						["TwilightShore"] = 371080767748,
						["FirebeardsPatrol"] = 285065008343,
						["TheBlackBreach"] = 130445166803,
						["SlitheringCove"] = 182114788550,
						["Bloodgulch"] = 220553442519,
						["Highbank"] = 433449045212,
						["Crushblow"] = 480350768310,
						["VermillionRedoubt"] = 17254588740,
						["TheTwilightBreach"] = 206485803207,
						["DunwaldRuins"] = 394477660357,
						["GlopgutsHollow"] = 95868352686,
						["VictoryPoint"] = 328881831089,
						["WyrmsBend"] = 249323264191,
						["ObsidianForest"] = 408479367510,
						["HighlandForest"] = 354840453359,
						["HumboldtConflaguration"] = 95923877007,
						["TheGullet"] = 192482037935,
						["WeepingWound"] = 375584982,
						["TheTwilightGate"] = 382595177637,
						["FirebeardsPatrol"] = 285065008343,
					},
					["Deepholm"] = {
						["NeedlerockSlag"] = 156766598514,
						["DeathwingsFall"] = 319477341638,
						["TheShatteredField"] = 470447004078,
						["TwilightTerrace"] = 412628490477,
						["NeedlerockChasm"] = 21339514,
						["ThePaleRoost"] = 89408979,
						["StormsFuryWreckage"] = 411723658532,
						["TwilightOverlook"] = 451569508763,
						["CrimsonExpanse"] = 13451542990,
						["StoneHearth"] = 337155295603,
						["ScouredReach"] = 470056452,
						["TherazanesThrone"] = 455242002,
						["TempleOfEarth"] = 190353597795,
					},
					["AhnQirajTheFallenKingdom"] = {
						["AQKingdom"] = 121271159,
					},
					["Uldum"] = {
						["RuinsOfAmmon"] = 310539183307,
						["Orsis"] = 146305961209,
						["TheTrailOfDevestation"] = 375425020110,
						["TheGateofUnendingCycles"] = 16784797857,
						["Ramkahen"] = 72371899620,
						["RuinsOfAhmtul"] = 382907670,
						["ObeliskOfTheMoon"] = 115573136,
						["AkhenetFields"] = 297920554148,
						["Schnottzslanding"] = 237326599480,
						["ObeliskOfTheSun"] = 303151918349,
						["TahretGrounds"] = 207803808918,
						["VirnaalDam"] = 231356907671,
						["CradelOfTheAncient"] = 432001950922,
						["Marat"] = 187256997024,
						["HallsOfOrigination"] = 198196840717,
						["Nahom"] = 174557694189,
						["LostCityOfTheTolVir"] = 313011799273,
						["KhartutsTomb"] = 568548555,
						["TheCursedlanding"] = 183324963053,
						["Neferset"] = 412743891153,
						["ObeliskOfTheStars"] = 130500700356,
						["TempleofUldum"] = 136503837992,
						["TheVortexPinnacle"] = 508567948501,
					},
					["Uldum_terrain1"] = {
						["RuinsOfAmmon"] = 310539183307,
						["Orsis"] = 146305961209,
						["TahretGrounds"] = 207803808918,
						["Nahom"] = 174557694189,
						["Ramkahen"] = 72371899620,
						["RuinsOfAhmtul"] = 382907670,
						["ObeliskOfTheMoon"] = 115573136,
						["AkhenetFields"] = 297920554148,
						["Schnottzslanding"] = 237326599480,
						["ObeliskOfTheSun"] = 303151918349,
						["TheTrailOfDevestation"] = 375425020110,
						["TheVortexPinnacle"] = 508567948501,
						["VirnaalDam"] = 231356907671,
						["CradelOfTheAncient"] = 432001950922,
						["TheGateofUnendingCycles"] = 16784797857,
						["LostCityOfTheTolVir"] = 313011799273,
						["HallsOfOrigination"] = 198196840717,
						["ObeliskOfTheStars"] = 130500700356,
						["KhartutsTomb"] = 568548555,
						["TheCursedlanding"] = 183324963053,
						["Neferset"] = 412743891153,
						["TempleofUldum"] = 136503837992,
						["Marat"] = 187256997024,
						["ThroneOfTheFourWinds"] = 465170568462,
					},
					["VashjirKelpForest"] = {
						["DarkwhisperGorge"] = 245366977756,
						["GnawsBoneyard"] = 349439223095,
						["GubogglesLedge"] = 301066304739,
						["TheAccursedReef"] = 174329136468,
						["LegionsFate"] = 37801487638,
						["HonorsTomb"] = 46569568547,
						["HoldingPens"] = 431048895804,
					},
					["VashjirRuins"] = {
						["Nespirah"] = 280729236766,
						["RuinsOfTherseral"] = 188485958853,
						["BethMoraRidge"] = 478242110799,
						["GlimmeringdeepGorge"] = 238653985040,
						["ShimmeringGrotto"] = 419715411,
						["SilverTideHollow"] = 34517351904,
						["RuinsOfVashjir"] = 287990719837,
					},
					["VashjirDepths"] = {
						["FireplumeTrench"] = 118442159402,
						["AbyssalBreach"] = 521624043,
						["ColdlightChasm"] = 300927015179,
						["AbandonedReef"] = 282446932339,
						["Seabrush"] = 196930169057,
						["LGhorek"] = 225655952690,
						["DeepfinRidge"] = 34648365419,
						["KorthunsEnd"] = 304301344114,
					},
					["TheWanderingIsle"] = {
						["RidgeofLaughingWinds"] = 212793099577,
						["SkyfireCrash-Site"] = 434995731802,
						["TheSingingPools"] = 13456862580,
						["PoolofthePaw"] = 348203970780,
						["MandoriVillage"] = 316091521634,
						["Fe-FangVillage"] = 9804478698,
						["Pei-WuForest"] = 436307499659,
						["TheDawningValley"] = 341471909,
						["TheRows"] = 317282702721,
						["MorningBreezeVillage"] = 38867889413,
						["TempleofFiveDawns"] = 195835672159,
						["TheWoodofStaves"] = 216909958109,
					},
					["TheJadeForest"] = {
						["NookaNooka"] = 162333406427,
						["GrookinMound"] = 229971825917,
						["WreckOfTheSkyShark"] = 211974354,
						["HellscreamsHope"] = 80720599236,
						["DawnsBlossom"] = 191467047146,
						["SlingtailPits"] = 447125573811,
						["EmperorsOmen"] = 22999675082,
						["RuinsOfGanShi"] = 331512004,
						["GlassfinVillage"] = 384950393110,
						["SerpentsSpine"] = 321455874239,
						["JadeMines"] = 157185882348,
						["NectarbreezeOrchard"] = 354639151323,
						["ChunTianMonastery"] = 60444317923,
						["TheArboretum"] = 231359072498,
						["DreamersPavillion"] = 558842925274,
						["TempleOfTheJadeSerpent"] = 317244787976,
						["Waywardlanding"] = 517906557147,
						["WindlessIsle"] = 46736437499,
					},
					["Krasarang"] = {
						["ZhusBastion"] = 641937714,
						["LostDynasty"] = 29608926425,
						["krasarangCove"] = 21136421150,
						["TempleOfTheRedCrane"] = 231169330395,
						["TheDeepwild"] = 63767474364,
						["NayeliLagoon"] = 400865607926,
						["CradleOfChiJi"] = 403911731472,
						["FallsongRiver"] = 82907112662,
						["RuinsOfDojan"] = 47710600396,
						["DojaniRiver"] = 3759433918,
						["AnglersOutpost"] = 220688746761,
						["RuinsOfKorja"] = 94620757203,
						["UngaIngoo"] = 535069632770,
						["RedwingRefuge"] = 67978405076,
					},			
					["Krasarang_terrain1"] = {
						["KRASARANGCOVE"] = 21136446759,
						["FALLSONGRIVER"] = 82907112662,
						["DOJANIRIVER"] = 3759433918,
						["RUINSOFDOJAN"] = 47710600396,
						["THEDEEPWILD"] = 63767474364,
						["NAYELILAGOON"] = 400865607926,
						["UNGAINGOO"] = 535069632770,
						["TEMPLEOFTHEREDCRANE"] = 231169330395,
						["RUINSOFKORJA"] = 94620757203,
						["ANGLERSOUTPOST"] = 215320042843,
						["THESOUTHERNISLES"] = 286689404179,
						["LOSTDYNASTY"] = 29608926425,
						["THEFORBIDDENJUNGLE"] = 84825911553,
						["REDWINGREFUGE"] = 67978405076,
						["ZHUSBASTION"] = 641937714,
						["CRADLEOFCHIJI"] = 403911731472,
					},
					["ValleyoftheFourWinds"] = {
						["Halfhill"] = 190511830222,
						["ThunderfootFields"] = 652539260,
						["GildedFan"] = 44482990288,
						["MudmugsPlace"] = 173460907238,
						["PoolsofPurity"] = 62815197397,
						["GrandGranery"] = 349316534586,
						["CliffsofDispair"] = 434017411582,
						["SilkenFields"] = 272212692222,
						["NesingwarySafari"] = 350149236985,
						["ZhusDecent"] = 123139853615,
						["Theheartland"] = 80796328222,
						["DustbackGorge"] = 368293761233,
						["HarvestHome"] = 256629796100,
						["SingingMarshes"] = 139764993199,
						["StormsoutBrewery"] = 408260215041,
						["PaoquanHollow"] = 112755726609,
						["KuzenVillage"] = 79692087495,
						["RumblingTerrace"] = 323806811413,
					},
					["TownlongWastes"] = {
						["OsulMesa"] = 199229743342,
						["palewindVillage"] = 389420468506,
						["TheSumprushes"] = 396782417167,
						["SriVess"] = 206255189286,
						["ShadoPanGarrison"] = 413823838421,
						["ShanzeDao"] = 131324204,
						["NiuzaoTemple"] = 258995494184,
						["MingChiCrossroads"] = 480400078071,
						["GaoRanBlockade"] = 503083901281,
						["Sikvess"] = 465251314949,
						["KriVess"] = 224852718847,
					},
					["KunLaiSummit"] = {
						["Mogujia"] = 441792545021,
						["Kotapeak"] = 386791638268,
						["TEMPLEOFTHEWHITETIGER"] = 183151890682,
						["MuskpawRanch"] = 336713750757,
						["BinanVillage"] = 505295345904,
						["ValleyOfEmperors"] = 205559940320,
						["ZouchinVillage"] = 69246086442,
						["Iseoflostsouls"] = 4926448899,
						["ShadoPanMonastery"] = 98876917121,
						["TheBurlapTrail"] = 333277581622,
						["MountNeverset"] = 283707130169,
						["GateoftheAugust"] = 543784339717,
						["FireboughNook"] = 532913762528,
						["PeakOfSerenity"] = 67995194655,
					},
					["DreadWastes"] = {
						["SOGGYSGAMBLE"] = 436411286796,
						["BRINYMUCK"] = 334158379333,
						["HORRIDMARCH"] = 240980789571,
						["BREWGARDEN"] = 368273658,
						["HEARTOFFEAR"] = 131197080838,
						["DREADWATERLAKE"] = 336539635010,
						["CLUTCHESOFSHEKZEER"] = 134575618257,
						["TERRACEOFGURTHAN"] = 99406293201,
						["KLAXXIVESS"] = 118592059628,
						["KYPARIVOR"] = 508754245,
						["ZANVESS"] = 413560761634,
						["RIKKITUNVILLAGE"] = 34607392986,
					},
					["ValeofEternalBlossoms"] = {
						["TheStairsAscent"] = 287272443326,
						["WhitepetalLake"] = 182827902219,
						["SettingSunTraining"] = 251256026462,
						["WhiteMoonShrine"] = 11243100458,
						["TheGoldenStair"] = 17524062450,
						["MoguShanPalace"] = 24282269045,
						["TheTwinMonoliths"] = 104619059472,
						["MistfallVillage"] = 389978309942,
						["GuoLaiRuins"] = 3312809297,
						["TuShenBurialGround"] = 339668685067,
						["WinterboughGlade"] = 114894910825,
					},
					["TheHiddenPass"] = {
						["TheHiddenSteps"] = 512607059234,
						["TheBlackMarket"] = 188294346207,
						["TheHiddenCliffs"] = 454258982,
					},
					["IsleoftheThunderKing"] = {
						["HORDE"] = 102197695766,
						["LOCK3"] = 10079352254,
						["ALLIANCE"] = 406143142378,
					},
					["IsleoftheThunderKingScenario"] = {
						["ALLIANCE"] = 406143142378,
						["LOCK3"] = 10079352254,
					},
					["Dustwallow_terrain1"] = {
						["BRACKENWLLVILLAGE"] = 63490483584,
						["THERAMOREISLE"] = 240013008177,
						["ALCAZISLAND"] = 23236649166,
						["THEWYRMBOG"] = 396587478452,
						["MUDSPROCKET"] = 336195845553,
						["BLACKHOOFVILLAGE"] = 208854360,
						["SHADYRESTINN"] = 202007353661,
						["DIREHORNPOST"] = 181838066967,
						["WITCHHILL"] = 449152270,
					},
					["BlastedLands_terrain1"] = {
						["DREADMAULPOST"] = 195764089067,
						["SUNVEILEXCURSION"] = 401984465129,
						["SURWICH"] = 509302996167,
						["THEDARKPORTAL"] = 192585967986,
						["THETAINTEDFOREST"] = 334072485212,
						["SERPENTSCOIL"] = 104634440922,
						["SHATTERSHORE"] = 98316859632,
						["NETHERGARDESUPPLYCAMPS"] = 457383107,
						["THETAINTEDSCAR"] = 188056045876,
						["THEREDREACHES"] = 288322062604,
						["RISEOFTHEDEFILER"] = 109915056296,
						["ALTAROFSTORMS"] = 118347730158,
						["DREADMAULHOLD"] = 270743824,
						["NETHERGARDEKEEP"] = 6998406439,
					},			
					["Gorgrond"] = {
						["MUSHROOMS"] = 347284379901,
						["TANGLEHEART"] = 399905092870,
						["BEASTWATCH"] = 398759986342,
						["FOUNDRYSOUTH"] = 196970991833,
						["STONEMAULARENA"] = 359975274713,
						["BASTIONRISE"] = 544684016964,
						["HIGHLANDPASS"] = 78957055261,
						["GRONNCANYON"] = 228977788183,
						["STONEMAULSOUTH"] = 446965102800,
						["HIGHPASS"] = 268866651345,
						["EVERMORN"] = 477036205353,
						["FOUNDRY"] = 79934223571,
						["STRIPMINE"] = 83005513978,
						["IRONDOCKS"] = 367186235,
					},
					["SpiresOfArak"] = {
						["VEILAKRAZ"] = 89415457020,
						["SOLOSPIRENORTH"] = 90644443332,
						["SKETTIS"] = 303217011,
						["WRITHINGMIRE"] = 212807668965,
						["SOUTHPORT"] = 352512560325,
						["EASTMUSHROOMS"] = 167110758582,
						["CLUTCHPOP"] = 410728497369,
						["BLOODMANEVALLEY"] = 376239806693,
						["NWCORNER"] = 107266362,
						["SETHEKKHOLLOW"] = 136910773486,
						["EMPTYGARRISON"] = 280542506174,
						["VENTURECOVE"] = 510515152098,
						["VEILZEKK"] = 288309354694,
						["BLOODBLADEREDOUBT"] = 225836165329,
					},
					["FrostfireRidge"] = {
						["BONESOFAGURAK"] = 343288411409,
						["BLADESPIREFORTRESS"] = 125667949924,
						["GROMBOLASH"] = 35940187353,
						["IRONWAYSTATION"] = 327089994951,
						["NOGARRISON"] = 351466161419,
						["DAGGERMAWRAVINE"] = 98008497407,
						["THEBONESLAG"] = 206462732544,
						["GRIMFROSTHILL"] = 226111990962,
						["MAGNAROK"] = 36072347861,
						["HORDEGARRISON"] = 351466161419,
						["FROSTWINDDUNES"] = 127097106,
						["THECRACKLINGPLAINS"] = 147563255050,
						["WORGOL"] = 313608348989,
						["BLOODMAULSTRONGHOLD"] = 4621296898,
						["IRONSIEGEWORKS"] = 168209717577,
						["STONEFANGOUTPOST"] = 302042512635,
						["GROMGAR"] = 347348489498,
					},
					["Talador"] = {
						["ZANGARRA"] = 38328882463,
						["SHATTRATH"] = 23804099990,
						["FORTWRYNN"] = 45691940132,
						["TELMOR"] = 548899288561,
						["GORDALFORTRESS"] = 406449326503,
						["TUUREM"] = 159408947425,
						["ORUNAICOAST"] = 448015639,
						["ARUUNA"] = 191752284549,
						["AUCHINDOUN"] = 382606776629,
						["SEENTRANCE"] = 320693621044,
						["CENTERISLES"] = 245385945340,
						["TOMBOFLIGHTS"] = 291353350470,
						["NORTHGATE"] = 598889870,
						["GULROK"] = 391015315734,
					},
					["NagrandDraenor"] = {
						["RINGOFTRIALS"] = 171273678178,
						["LOKRATH"] = 201190503740,
						["TELAAR"] = 379514536232,
						["GROMMASHAR"] = 394692703488,
						["MARGOKS"] = 408811766009,
						["ELEMENTALS"] = 616843550,
						["SUNSPRINGWATCH"] = 105554114834,
						["OSHUGUN"] = 347202660614,
						["HALLVALOR"] = 127505125612,
						["MUSHROOMS"] = 27626077434,
					},
					["ShadowmoonValleyDR"] = {
						["SHAZGUL"] = 338500486426,
						["ANGUISHFORTRESS"] = 171945763125,
						["GLOOMSHADE"] = 5703450853,
						["ELODOR"] = 446966051,
						["EMBAARI"] = 169934582106,
						["KARABOR"] = 161624684937,
						["GULVAR"] = 27579652,
						["SHIMMERINGMOOR"] = 329040270624,
						["SOCRETHAR"] = 441709700298,
					},
					['*'] = {},
				}
		})

	CartoLight.options.args.Foglight = {
		name = L["Foglight"],
		desc = L["Module to show unexplored areas on the map."],
		type = 'group',
		args = {
			color = {
				name = L["Unexplored color"],
				desc = L["Change the color of the unexplored areas"],
				type = "color",
				get = "GetDarkColor",
				set = "SetDarkColor",
				hasAlpha = true,
			},
			toggle = {
				name = CartoLight.L["Enabled"],
				desc = CartoLight.L["Suspend/resume this module."],
				type = "toggle",
				order = -1,
				get = function() return CartoLight:IsModuleActive(self) end,
				set = function() CartoLight:ToggleModuleActive(self) end
			},
		},
		handler = self,
	}
	
--	trace( "Foglight initialized" )
end

function CartoLight_Foglight:OnEnable(first)
	self.overlayInfo = self.db.account.errata
	self:AddHook("GetNumMapOverlays")
	self:AddHook("WorldMapFrame_Update")

	if WorldMapFrame:IsShown() then
		WorldMapFrame_Update()
	end

	-- Fix for 2.3 so db reset isn't needed, remove this after a while since it only needs to be run once
	if first then
		for z,t in pairs(self.db.account.errata) do
			for k,v in pairs(t) do
				if ( v == 0 or v == 131200 ) and ( k == "" or k:lower() == "pixelfix" )then
					self.db.account.errata[z][k] = nil
				end
			end
		end
	end
end

function CartoLight_Foglight:OnDisable()
	for i = 1, NUM_WORLDMAP_OVERLAYS do
		local texture = _G["WorldMapOverlay"..i]
		texture:Hide()
		texture:SetVertexColor(1.0,1.0,1.0)
		texture:SetAlpha(1.0)
	end
	if WorldMapFrame:IsShown() then
		WorldMapFrame_Update()
	end
end

function CartoLight_Foglight:GetNumMapOverlays()
	if NUM_WORLDMAP_OVERLAYS == 0 then
		return self.hooks.GetNumMapOverlays()
	end
	return 0
end

function CartoLight_Foglight:WorldMapFrame_Update()
    self.hooks.WorldMapFrame_Update()
	self:WorldMapFrame_UpdateOverlays()
end

local discovered = {}
function CartoLight_Foglight:WorldMapFrame_UpdateOverlays()
	if not WorldMapFrame:IsShown() then
		return
	end

	local mapFileName, textureHeight, x, isMicroMap, microMapName = GetMapInfo()
	if not mapFileName or isMicroMap then
		return
	end

	local prefix = "Interface\\WorldMap\\"..mapFileName.."\\"
	local zoneTable = self.overlayInfo[mapFileName]

	local numOverlays = self.hooks.GetNumMapOverlays()
	local len = string.len(prefix)+1
	for i=1, numOverlays do
		local tname,tw,th,ofx,ofy = GetMapOverlayInfo(i)
		tname = string.sub(tname, len)
		local num = tw + th * 1024 + ofx * 1048576 + ofy * 1073741824
		if num ~= 0 and num ~= 131200 and tname ~= "" and tname:lower() ~= "pixelfix" then
			discovered[tname] = num
			zoneTable[tname] = num
		end
	end
	
	local textureCount = 0

	for tname, num in pairs(zoneTable) do
		local textureName = prefix .. tname
		local textureWidth, textureHeight, offsetX, offsetY = math_mod(num, 1024), math_mod(math_floor(num / 1024), 1024), math_mod(math_floor(num / 1048576), 1024), math_floor(num / 1073741824)

		-- HACK: override *known incorrect* data with hard-coded fixes.
		if textureName == "Interface\\WorldMap\\Tirisfal\\BRIGHTWATERLAKE" then
			if offsetX == 587 then
				offsetX = 584
			end
		end
		if textureName == "Interface\\WorldMap\\Silverpine\\BERENSPERIL" then
			if offsetY == 417 then
				offsetY = 415
			end
		end

		local numTexturesWide = math_ceil(textureWidth / 256)
		local numTexturesTall = math_ceil(textureHeight / 256)
		local neededTextures = textureCount + numTexturesWide*numTexturesTall
		if neededTextures > NUM_WORLDMAP_OVERLAYS then
			for j = NUM_WORLDMAP_OVERLAYS+1, neededTextures do
				WorldMapDetailFrame:CreateTexture("WorldMapOverlay"..j, "ARTWORK")
			end
			NUM_WORLDMAP_OVERLAYS = neededTextures
		end


		for j = 1, numTexturesTall do
			local texturePixelHeight
			local textureFileHeight
			if j < numTexturesTall then
				texturePixelHeight = 256
				textureFileHeight = 256
			else
				texturePixelHeight = math_mod(textureHeight, 256)
				if texturePixelHeight == 0 then
					texturePixelHeight = 256
				end
				textureFileHeight = 16
				while textureFileHeight < texturePixelHeight do
					textureFileHeight = textureFileHeight * 2
				end
			end
			
			for k = 1, numTexturesWide do
				if textureCount > NUM_WORLDMAP_OVERLAYS then
					return
				end
				textureCount = textureCount + 1
				local texture = _G["WorldMapOverlay"..textureCount]
				local texturePixelWidth
				local textureFileWidth
				if k < numTexturesWide then
					texturePixelWidth = 256
					textureFileWidth = 256
				else
					texturePixelWidth = math_mod(textureWidth, 256)
					if texturePixelWidth == 0 then
						texturePixelWidth = 256
					end
					textureFileWidth = 16
					while textureFileWidth < texturePixelWidth do
						textureFileWidth = textureFileWidth * 2
					end
				end
						
				texture:SetWidth(texturePixelWidth)
				texture:SetHeight(texturePixelHeight)
				texture:SetTexCoord(0, texturePixelWidth/textureFileWidth, 0, texturePixelHeight/textureFileHeight)
				texture:ClearAllPoints()
				texture:SetPoint("TOPLEFT", "WorldMapDetailFrame", "TOPLEFT", offsetX + (256 * (k-1)), -(offsetY + (256 * (j - 1))))

				if discovered[tname] then
					texture:SetVertexColor(1.0,1.0,1.0,1.0)
				else
					texture:SetVertexColor(self.db.profile.darkR, self.db.profile.darkG, self.db.profile.darkB, self.db.profile.darkA)
				end
				
				texture:SetTexture(textureName..(((j - 1) * numTexturesWide) + k))
				texture:Show()
			end
		end
	end
	for i = textureCount+1, NUM_WORLDMAP_OVERLAYS do
		_G["WorldMapOverlay"..i]:Hide()
	end
	for k in pairs(discovered) do
		discovered[k] = nil
	end
end


function CartoLight_Foglight:GetDarkColor()
	return self.db.profile.darkR, self.db.profile.darkG, self.db.profile.darkB, self.db.profile.darkA
end

function CartoLight_Foglight:SetDarkColor(r,g,b,a)
	if WorldMapFrame:IsShown() and WorldMapFrame:GetFrameStrata() == "FULLSCREEN" then
		ToggleFrame(WorldMapFrame)
	end
	self.db.profile.darkR, self.db.profile.darkG, self.db.profile.darkB, self.db.profile.darkA = r,g,b,a
	self:WorldMapFrame_UpdateOverlays()
end

function CartoLight_Foglight:OnProfileEnable()
	WorldMapFrame_Update()
end

local function trace(msg)
	DEFAULT_CHAT_FRAME:AddMessage(msg);
end